package com.kingyun.gpsinspection.purificationservice.facade.service.jsm.teamlog;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Employee;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.TeamLog;

import java.util.List;
import java.util.Map;

/**
 * Created by zmling on 2016/12/19.
 * 交接班记录信息
 */
public interface JsmTeamLogService {

    /**
     * 分页查询
     *
     * @param bootstrapSearchBean
     * @return
     * @throws Exception
     */
    JSONObject findTeamLog(BootstrapSearchBean bootstrapSearchBean) throws Exception;

    /**
     * 新增交接班信息
     *
     * @param teamLog
     * @param uploadFiles
     * @param deletedFiles
     * @return
     * @throws Exception
     */
    int addTeamLog(TeamLog teamLog, String uploadFiles, String deletedFiles, Employee employee) throws Exception;

    /**
     * 通过Id查询信息
     *
     * @param teamLogId
     * @return
     * @throws Exception
     */
    TeamLog findToView(String teamLogId) throws Exception;

    /**
     * @param record
     * @return List<TeamLog>
     * @Author 卢曼成
     * @Description 根据条件查询集合
     * @CreateDateTime 2017/3/29 9:08
     **/
    List<TeamLog> selectByParamList(TeamLog record);

    /**
     * 查询当前登录用户所属班组
     *
     * @param employee
     */
    public Map<String, Object> getTeamLogParam(Employee employee);
}
